﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DelegateDemo
{
    public delegate string MyDelegate();
    
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个字符串");
            //string temp = Console.ReadLine();
            MyDelegate dele = new MyDelegate(ReturnString);
            string temp = dele();

            Console.WriteLine(temp);
            Console.ReadLine();

        }

        static string ReturnString()
        {
            return "ssssssssssss";
        }
    }
}
